
export type secondnavType = {
    id: number,
    name: string
}
// 新建项目
export type proHomeType = {
    area: string,
    leftUpLatitude: number | null,
    leftUpLongitude: number | null,
    name: string,
    projectDescription: string,
    rightDownLatitude: number | null,
    rightDownLongitude: number | null,
    subsystemIdList: number[],
    userId: number
}


export interface multiType {
    [key: string]: string | multiType[] | number | null
}
export type subSystemType = {
    "isPick": boolean,
    "sid": number,
    "sname": string,
    icon?: string
}
// 查询项目列表参数
export type proListParamsTyp = {
    userId: string | number,
    likeProjectName: string
}

// 项目列表返回数据
export type proListReturnType = {
    "area": string,
    "createTime": string,
    "id": number,
    "name": string,
    "subsystemBOList": proListSubReturnType[],
    projectDescription: string
}

export type proListSubReturnType = {
    sid: number,
    sname: string
}


//  项目信息
export type projectInfoType = {
    "area": string,
    "id": number,
    "leftUpLatitude": number,
    "leftUpLongitude": number,
    "name": string,
    "rightDownLatitude": number,
    "rightDownLongitude": number,
    "subsystemBOList": subSystemType[]
}


//  项目反显
export type projectShowType = {
    "area": string,
    "id": number,
    "leftUpLatitude": number,
    "leftUpLongitude": number,
    "name": string,
    "rightDownLatitude": number,
    "rightDownLongitude": number,
    "subsystemList": subSystemType[],
    projectDescription: string
}

// 删除项目参数
export type delProParamsType = {
    projectId: number
}



export type simpleHosType = {
    name: string,
    id: string,
    type: string,
    system?: string,
    filename: string,
    url: string
}

//   医疗科室，义务人员tab切换  指定地震动-基于衰减关系
export type navType = {
    name: string,
    id: number,
    path?: string,
    data_name?: string,
    data_value?:string
   
}

// 地震动水准
export type standardType = {
    id: number,
    name: string
}


export type proType = {
    // name: string,
    // id: number,
    name: string,
    id: number
}

//  single-table  
export type singleTabType = {
    [key: string]: string | number
}

export type singleArrType = {
    [key: string]: [string | number][] | singleArrType
}


export type colorType = {

}
//  单体医院上传文件名
export type hospitalUploadFileName = {
    "MED_ONE_WOUND_RATE": string,
    "MED_ONE_FACILITY_USABILITY": string,
    "MED_ONE_ENGINEERING_PARAMS": string,
    "MED_ONE_BUILDING_RESTORE": string,
    "MED_ONE_HOSPITAL": string
}





export type subTabtype = {
    label: string,
    prop: string,
}

export type multiColumnType = {
    label: string,
    prop: string,
    children?: multiColumnType[]
}

export type casualRateType = {
    hospitalName: string,
    rate: casualRateSingleType[]
}

export type casualRateSingleType = {
    "standard": string,
    "woundRate": number,
    "deathRate": number
}

//  formateMoreMultiData区域医疗人员伤亡处理数据（图表用）
export type regionPerDataType = {
    [key: string]: number[]
}

export type returnRegionType = {
    arrObj: regionPerDataType;
    standard: string[];
    // colorList: {
    //     color: string;
    //     name: string;
    // }[];
}


//  受灾点伤员数量及分布 选项返回参数
export interface seleStandardType {
    name: number,
    dayName: string
}
//  请求受灾点信息参数
export interface paramsType {
    projectId: number,
    standardId: number,
    type: string
}

// 受灾点信息传递数据
export type woundMoreDistributeType = {
    "siteId": string,
    "siteName": string,
    "longitude": number,
    "latitude": number,
    "firstValue": number,
    "secondValue": number,
    "thirdValue": number
}


export type buildingTimeType = {
    "hospitalName": string,
    "restore": buildingTimeItemType[]
}

// export type buildingTimeType = {
//     "hospitalName":string,
//     [key:string]: buildingTimeItemType[]
// }



export type buildingTimeItemType = {
    "standard": string,
    "time": number
    // [key:string]:string | number
}


export type multiTabType = {
    label: string,
    prop?: string,
    children?: multiTabType[]
}

export type multiEngTabType = {
    [key: string]: string | object
}




export type tableType = {
    rowspan: any
    [x: string]: any
    date: string,
    name: string,
    province: string,
    city: string,
    address: string,
    remark: string,
    // level: string,
    // room: number,
    // shoushushi: number,
    // bingchuang: number,
    // yisheng: number,
    // hushi: number,
    // mzyis: number,
    // fsky:number
}




// 地震动水准列表
export type seismicStandardListType = {
    id?:string,
    code: string,
    strength: number | null
}

// 医院建筑修复时间列表
export type hospitalTimeListType = {
    id: number | null,
    hospitalName: string,
    recoverTime: number | null
}

// 新增修改删除地震动水准---获取也是
export type seismicStandardAddType = {
    projectId: number,
    seismicStandardBOList: seismicStandardListType[]
}

//  查询医疗科室
export type cityInfoResourceType = {
    "firstTime": number,
    "firstValue": number,
    "id": number,
    "name": string,
    "projectId": number,
    "secondTime": number,
    "secondValue": number,
    "thirdTime": number,
    "thirdValue": number,
    "type": number
}

//  iconList type

export type iconListType = {
    name: string,
    color: string
}

// 救治能力损失列表
export type lossFunType = {
    firstValue: number,
    secondValue: number,
    thirdValue: number,
    id: number,
    projectId: number
}

export type tabNumObjType = {
    [key: string]: number
}

export interface singleBaseTabType {
    [key: string]: string | number
}

export interface singleParamTabType {
    [key: string]: string | number | singleBaseTabType[]
}

export type editProType = {
    area: string,
    id: number,
    name: string,
    projectDescription: string
}

/**
 * 韧性评价- 韧性等级
 */
export type toughnessClassListType = {
    name: string,
    lossFunctionDown: string,
    lossFunctionUp: string,
    recoverTimeDown: string,
    recoverTimeUp: string
}